[#escape x as (x)!?html]
<div class="web-footer">
	<div class="w center text-center" >
		<div class="powered">
			<!--<span>Powered by <strong style="font-size:12px"><a href="http://www.jspxcms.com" target="_blank" class="c-666 a-hover">普天cms</a></strong></span>-->
			<ul class="webinfo">
				<li>xxx人民政府主办</li>
				<li>xxx人民政府办公室承办</li>
				<li>xxx信息化工作办公室负责日常管理与维护</li>
			</ul>
			<span>&copy; 2017-2019 HoyuKenzo All Rights Reserved</span>
		</div>
		<div class="copyright">
			<span>${site.customs['company']} 版权所有</span>
			<span><a href="http://www.miibeian.gov.cn" target="_blank" class="icp a-hover">${site.customs['icp']}</a></span>
			<!--<span><a href="${ctx}/cmscp/index.do" class="c-infoem" target="_blank">登录后台</a></span>-->
		</div>
	</div>
</div>
[#if user??]
<script>
	$(function () {
//		排序初始化
		$("#header-nav").sortable(
				{	opacity:0.5,
					placeholder: "nav-placeholder",
					cancel:".navhome",
					update : function(event, ui) {
						var sortArr = [];
						$("#header-nav>.navdragli").each(function(index) {
							var sort = {"id":parseInt($(this).attr("id")),"index":index}
							sortArr.push(sort);
						});

						$.ajax({
							type: "post",
							url: "/savecustnode",
							datatype:"json",
							data: { custnodes: JSON.stringify(sortArr),type:0},
							beforeSend: function() {

							},
							success: function(msg) {
							}
						});
//					console.log(sortArr);
						//更新排序之后
//				alert($(this).sortable("toArray"));
//				console.log($(this).sortable("toArray"));
					}
				}
		);
		$( "#news-list" ).sortable({
			cursor:"move",
//			placeholder: "portlet-placeholder",
			connectWith: ".drag-div",//,
			opacity:0.5,
			distance: 5,
//			revert: true,
			handle: ".box1",
			update : function(event, ui) {
				var sortArr = [];
				$(".drag-div").each(function(index) {
					var sort = {"id":parseInt($(this).attr("id")),"index":index}
					sortArr.push(sort);
				});

				$.ajax({
					type: "post",
					url: "/savecustnode",
					datatype:"json",
					data: { custnodes: JSON.stringify(sortArr),type:1},
					beforeSend: function() {

					},
					success: function(msg) {
					}
				});
//					console.log(sortArr);
				//更新排序之后
//				alert($(this).sortable("toArray"));
//				console.log($(this).sortable("toArray"));
			}
		});
	})
</script>
[/#if]

<script>
//		当前日期初始化
		$.ajax({
			type: "post",
			url: "/extend/getCurrentDate",
			datatype:"json",
			beforeSend: function() {

			},
			success: function(msg) {
				$("#currentDate").text(msg.date+"  " + msg.week);
			}
		});
</script>

<script type="text/javascript">
document.write(decodeURI("%3Cscript src='${ctx}/visit_log?url=")+encodeURIComponent(document.location.href)+decodeURI("&referrer=")+encodeURIComponent(document.referrer)+decodeURI("' type='text/javascript'%3E%3C/script%3E"));
</script>
[/#escape]